#include "pw_pbl/DeviceRegister20.hpp"

#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "doctest.h"

struct Mybits{
    int c:2;
    int a:3;
    int : 2;
    int b:4;
};

int aa;
pw_pbl::TDeviceRegister<volatile int&,Mybits> reg(aa);

TEST_CASE("DeviceRegister20"){
    reg.Bits() = {.a=3,.b=4};
}
